package com.gutai.admin.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 * 描述：
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2018年11月13日         YC           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author YC
 * @version 1.0
 */
@Entity
@Table(name = "nideshop_order")
public class Order {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String orderSn;
    private Integer userId;
    private Integer orderStatus;
    @Transient
    private String orderStatusName;
    private Short shippingStatus;
    private Short payStatus;
    /* 收件人 */
    private String consignee;
    private Short country;
    private Short province;
    private Short city;
    private Short district;
    private String address;
    private String mobile;
    private String postScript;
    private Double shippingFee;
    private String payName;
    private Short payId;
    /* 实际价格 */
    private Double actualPrice;
    /* 积分 */
    private Integer integral;
    private Double integralMoney;
    /* 订单总价 */
    private Double orderPrice;
    /* 商品总价 */
    private Double goodsPrice;
    private Long addTime;
    private Long confirmTime;
    private Long payTime;
    /* 配送费用 */
    private Integer freightPrice;
    private Integer couponId;
    private Integer parentId;
    private Double couponPrice;
    private boolean callbackStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderStatusName() {
        return orderStatusName;
    }

    public void setOrderStatusName(String orderStatusName) {
        this.orderStatusName = orderStatusName;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Short getShippingStatus() {
        return shippingStatus;
    }

    public void setShippingStatus(Short shippingStatus) {
        this.shippingStatus = shippingStatus;
    }

    public Short getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Short payStatus) {
        this.payStatus = payStatus;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public Short getCountry() {
        return country;
    }

    public void setCountry(Short country) {
        this.country = country;
    }

    public Short getProvince() {
        return province;
    }

    public void setProvince(Short province) {
        this.province = province;
    }

    public Short getCity() {
        return city;
    }

    public void setCity(Short city) {
        this.city = city;
    }

    public Short getDistrict() {
        return district;
    }

    public void setDistrict(Short district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPostScript() {
        return postScript;
    }

    public void setPostScript(String postScript) {
        this.postScript = postScript;
    }

    public Double getShippingFee() {
        return shippingFee;
    }

    public void setShippingFee(Double shippingFee) {
        this.shippingFee = shippingFee;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public Short getPayId() {
        return payId;
    }

    public void setPayId(Short payId) {
        this.payId = payId;
    }

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Double getIntegralMoney() {
        return integralMoney;
    }

    public void setIntegralMoney(Double integralMoney) {
        this.integralMoney = integralMoney;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Long getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Long confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Long getPayTime() {
        return payTime;
    }

    public void setPayTime(Long payTime) {
        this.payTime = payTime;
    }

    public Integer getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(Integer freightPrice) {
        this.freightPrice = freightPrice;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public boolean isCallbackStatus() {
        return callbackStatus;
    }

    public void setCallbackStatus(boolean callbackStatus) {
        this.callbackStatus = callbackStatus;
    }

    @Override
    public String toString() {
        return "Order [id=" + id + ", orderSn=" + orderSn + ", userId=" + userId + ", orderStatus="
                + orderStatus + ", shippingStatus=" + shippingStatus + ", payStatus=" + payStatus
                + ", consignee=" + consignee + ", country=" + country + ", province=" + province
                + ", city=" + city + ", district=" + district + ", address=" + address
                + ", mobile=" + mobile + ", postScript=" + postScript + ", shippingFee="
                + shippingFee + ", payName=" + payName + ", payId=" + payId + ", actualPrice="
                + actualPrice + ", integral=" + integral + ", integralMoney=" + integralMoney
                + ", orderPrice=" + orderPrice + ", goodsPrice=" + goodsPrice + ", addTime="
                + addTime + ", confirmTime=" + confirmTime + ", payTime=" + payTime
                + ", freightPrice=" + freightPrice + ", couponId=" + couponId + ", parentId="
                + parentId + ", couponPrice=" + couponPrice + ", callbackStatus=" + callbackStatus
                + "]";
    }

}
